package com.cskaoyan.controller.admincontroller;

import com.cskaoyan.bean.po.MarketUser;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.wxservice.UserService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 小黑球
 * @datetime 2022/12/28 18:44
 * @description: TODO:
 */
@RestController//意味着要响应json数据
@RequestMapping("admin/user")
public class AdminUserController {

    @Autowired
    UserService2 userService2;

    @RequestMapping("list")
    //URI
    //看响应结果 data errmsg errno
    //BaseRespVo给data提供数据
    //public BaseRespVo list(Integer page,Integer limit,String username,String mobile,String sort,String order){
    public BaseRespVo list(BasePageInfo info, String username, String mobile) {
        CommonData<MarketUser> data=userService2.list(info,username,mobile);
        return BaseRespVo.ok(null);
    }
    //逆向工程
    //和MarketUser是对应起来的



}
